package particle;

import processing.core.PApplet;

public class Shape extends PApplet {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	float x;
	float y;
	float r;
	PApplet parent; // The parent PApplet that we will render ourselves onto

	Shape(PApplet p, float x_, float y_, float r_) {
		parent = p;
		x = x_;
		y = y_;
		r = r_;
	}

	// To bo overridden by each subclass
	public void render() {
		parent.stroke(0);
		parent.point(x, y);
	}

	public void jiggle() {
		x += random(-1, 1);
		y += random(-1, 1);
	}

}
